
Partial Class AccessDenied
    Inherits Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'lblAccessDenied.Visible = HttpContext.Current.User.Identity.IsAuthenticated
        lblLogonRequired.Visible = False
        lblInvalidCredentials.Visible = False
        If (Not HttpContext.Current.User.Identity.IsAuthenticated) And Request.QueryString("loginfailure") = "" Then
            lblLogonRequired.Visible = True
        End If
        If Request.QueryString("loginfailure") = "1" Then
            lblInvalidCredentials.Visible = True
        End If
    End Sub
End Class
